import {
	serverUrl2
} from "./const.ts"
import {
	defineConfig
} from 'vite';
import uni from '@dcloudio/vite-plugin-uni';

export default defineConfig({
	plugins: [uni()],
	server: {
		proxy: {
			"/api": {
				target: 'https://' + serverUrl2,
				changeOrigin: true,
				rewrite: (p) => p.replace(/^\api/, '')
			}
		}
	}
});
